<include file="Public:_head" />
<include file="Public:left" />
<div id="neirong">
    
	  <!--<h2 class="lm_title">微留言，求职者！</h2>-->
       
       <div id="LeaveMessage">
       <h3 class="subTitle"><img src="com_statics/images/icon_7.gif" alt="图片描述" style="top:20px;"/>微留言<span>求职者与贵公司互动的渠道！</span></h3>
       
            <p class="Tips">您新收到<em>{$cou}</em>位求职者的留言</p>
            <h3 class="NavTitle">留言列表</h3>
            <volist name="list" id="vo">
            <div class="ly">
                <p class="liuyan"><span class="time">{$vo.ctime|date="Y-m-d H:i:s",###}&nbsp;&nbsp;<a href="" onclick="del_mess({$vo.mid})">删除留言</a></span><strong>{$vo.from}：</strong>{$vo.content}</p>
                <empty name="vo.reply">
                    <form action="__URL__/add_reply" class="formHuifu" method="post">
                    <input name="content" type="text" class="text" />
                    <input type="hidden" name="mid" value="{$vo.mid}" />
                     <button class="btn_send"  type="submit">回复</button>
                </form>
                <else/>
                <volist name="vo.reply" id="ro">
                    <p class="huifuly"><span style="float:right;"><a href="" onclick="del_reply({$ro.rid})" style="color:red;">删除回复</a></span>{$ro.content}</p>
                </volist>
                </empty>
            </div>
            </volist>
           
        </div>
        <!-- LeaveMessage结束 -->

            
{$page}

	</div>
	<!-- neirong结束 -->


	<span class="clear"></span>
	<!-- 清除浮动 -->


</div>
<!-- container结束 -->
<script type="text/javascript">
$(document).ready(function(){
  var diy = "{$wei_note}";
  var u = ""
  if(diy != 1){
    show_err_msg('您尚未开通微留言功能，请联系我们！',1);
    return false;
  }
  });

                                function del_mess(val){
                                  var con = confirm('确定删除该留言吗？');
                                  if(con){
                                    $.post("__URL__/del_mess", { "mid": val},
                                       function(data){
                                        if (data.status==1) {
                                          location.replace(location.href);  }
                                       }, "json");
                                  }
                                            
                                }
                                 function del_reply(val){
                                  var con = confirm('确定删除该回复吗？');
                                    if(con){
                                    $.post("__URL__/del_reply", { "rid": val},
                                       function(data){
                                        if (data.status==1) {
                                          location.replace(location.href);  }
                                       }, "json");
                                  }
                                            
                                }
</script>
<include file="Public:bottom" />